import pygame, sys
from pygame.locals import *

pygame.init()

turn = 'You'
def show_result():
    result_font = pygame.font.Font(None, 80)
    result = result_font.render(turn + ' Won!!!', 1, (0, 0, 0))
    screen.fill([255, 255, 255])
    screen.blit(result, [(width - result.get_width()) / 2, (height - result.get_height()) / 2])
    pygame.display.flip()
size = width, height = [500, 500]
screen = pygame.display.set_mode(size)
screen.fill([255, 255, 255])
for x in range(0, 310, 5):
    pygame.draw.rect(screen, [0, 0, 0], [100 + x, 200, 5, 5], 0)
    pygame.draw.rect(screen, [0, 0, 0], [100 + x, 305, 5, 5], 0)
    pygame.draw.rect(screen, [0, 0, 0], [200, 100 + x, 5, 5], 0)
    pygame.draw.rect(screen, [0, 0, 0], [305, 100 + x, 5, 5], 0)
    pygame.display.flip()
 

while True:
    event = pygame.event.wait()

    pos = None

    if event.type == pygame.QUIT:
        pygame.quit()
        sys.exit()
    elif event.type == MOUSEBUTTONDOWN:
        show_result()
